# This file is part of BlackArch Linux ( https://blackarch.org )
# See COPYING for license details.

pkgname=python-flask-mongoengine
_pkgname=flask-mongoengine
pkgver=1.0.0
pkgrel=8
pkgdesc='A Flask extension that provides integration with MongoEngine and WTF model forms.'
arch=('any')
url='https://pypi.org/project/flask-mongoengine/#files'
depends=('python' 'python-flask' 'python-flask-wtf' 'python-mongoengine'
         'python-six' 'python-blinker')
makedepends=('python-setuptools')
license=('BSD')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('9a3e43b643055726bbe600b57b5c3bc20b64db1b4191f1ecbbbc42953522ce0d0c8956cc7dd49fe443c7ea0704b929c5caeb2758ebcc3a928a13db36f395ece6')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

